﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004D9 RID: 1241
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EvolveBuildShopAbilityUpCsReq : IMessage<EvolveBuildShopAbilityUpCsReq>, IMessage, IEquatable<EvolveBuildShopAbilityUpCsReq>, IDeepCloneable<EvolveBuildShopAbilityUpCsReq>, IBufferMessage
	{
		// Token: 0x17001015 RID: 4117
		// (get) Token: 0x06003822 RID: 14370 RVA: 0x0009AC09 File Offset: 0x00098E09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EvolveBuildShopAbilityUpCsReq> Parser
		{
			get
			{
				return EvolveBuildShopAbilityUpCsReq._parser;
			}
		}

		// Token: 0x17001016 RID: 4118
		// (get) Token: 0x06003823 RID: 14371 RVA: 0x0009AC10 File Offset: 0x00098E10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EvolveBuildShopAbilityUpCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001017 RID: 4119
		// (get) Token: 0x06003824 RID: 14372 RVA: 0x0009AC22 File Offset: 0x00098E22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EvolveBuildShopAbilityUpCsReq.Descriptor;
			}
		}

		// Token: 0x06003825 RID: 14373 RVA: 0x0009AC29 File Offset: 0x00098E29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopAbilityUpCsReq()
		{
		}

		// Token: 0x06003826 RID: 14374 RVA: 0x0009AC31 File Offset: 0x00098E31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopAbilityUpCsReq(EvolveBuildShopAbilityUpCsReq other) : this()
		{
			this.shopSkillId_ = other.shopSkillId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003827 RID: 14375 RVA: 0x0009AC62 File Offset: 0x00098E62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopAbilityUpCsReq Clone()
		{
			return new EvolveBuildShopAbilityUpCsReq(this);
		}

		// Token: 0x17001018 RID: 4120
		// (get) Token: 0x06003828 RID: 14376 RVA: 0x0009AC6A File Offset: 0x00098E6A
		// (set) Token: 0x06003829 RID: 14377 RVA: 0x0009AC72 File Offset: 0x00098E72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopSkillId
		{
			get
			{
				return this.shopSkillId_;
			}
			set
			{
				this.shopSkillId_ = value;
			}
		}

		// Token: 0x17001019 RID: 4121
		// (get) Token: 0x0600382A RID: 14378 RVA: 0x0009AC7B File Offset: 0x00098E7B
		// (set) Token: 0x0600382B RID: 14379 RVA: 0x0009AC83 File Offset: 0x00098E83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x0600382C RID: 14380 RVA: 0x0009AC8C File Offset: 0x00098E8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EvolveBuildShopAbilityUpCsReq);
		}

		// Token: 0x0600382D RID: 14381 RVA: 0x0009AC9A File Offset: 0x00098E9A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EvolveBuildShopAbilityUpCsReq other)
		{
			return other != null && (other == this || (this.ShopSkillId == other.ShopSkillId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600382E RID: 14382 RVA: 0x0009ACD8 File Offset: 0x00098ED8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ShopSkillId != 0U)
			{
				num ^= this.ShopSkillId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600382F RID: 14383 RVA: 0x0009AD30 File Offset: 0x00098F30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003830 RID: 14384 RVA: 0x0009AD38 File Offset: 0x00098F38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003831 RID: 14385 RVA: 0x0009AD44 File Offset: 0x00098F44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Level);
			}
			if (this.ShopSkillId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.ShopSkillId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003832 RID: 14386 RVA: 0x0009ADA0 File Offset: 0x00098FA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ShopSkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopSkillId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003833 RID: 14387 RVA: 0x0009ADF8 File Offset: 0x00098FF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EvolveBuildShopAbilityUpCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ShopSkillId != 0U)
			{
				this.ShopSkillId = other.ShopSkillId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003834 RID: 14388 RVA: 0x0009AE48 File Offset: 0x00099048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003835 RID: 14389 RVA: 0x0009AE54 File Offset: 0x00099054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ShopSkillId = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001621 RID: 5665
		private static readonly MessageParser<EvolveBuildShopAbilityUpCsReq> _parser = new MessageParser<EvolveBuildShopAbilityUpCsReq>(() => new EvolveBuildShopAbilityUpCsReq());

		// Token: 0x04001622 RID: 5666
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001623 RID: 5667
		public const int ShopSkillIdFieldNumber = 10;

		// Token: 0x04001624 RID: 5668
		private uint shopSkillId_;

		// Token: 0x04001625 RID: 5669
		public const int LevelFieldNumber = 8;

		// Token: 0x04001626 RID: 5670
		private uint level_;
	}
}
